﻿<customWindow:BlackStyleChildWindow x:Class="MediaBrowserSL.RIA.Views.ChildWindowZoomPicture"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:customWindow="http://www.sebastien-alves.fr/jadeToolsSLWindows" 
           xmlns:jadeControls="http://www.sebastien-alves.fr/jadeToolsSLControls" 
           Width="800" Height="600" 
           Title="Zoom Image">

    <customWindow:BlackStyleChildWindow.DataContext>
        <Binding Mode="OneWay" Path="Pictures" Source="{StaticResource Locator}"/>
    </customWindow:BlackStyleChildWindow.DataContext>


    <Grid x:Name="WindowContentPresenter" Background="{StaticResource BackgroundCustom}">
        <Grid Margin="5,5,5,5">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <jadeControls:ImageLoader Grid.Row="0" Source="{Binding CurrentMediaItem.UrlImage}" />
            <jadeControls:ImageButton HorizontalAlignment="Right" Width="15" Height="15" Grid.Row="1" Source="/MediaBrowserSL.RIA;Component/Images/Forward.png" Command="{Binding GoToBackCommand}">
                <ToolTipService.ToolTip>
                    <StackPanel Orientation="Horizontal">
                        <Path Height="11" HorizontalAlignment="Left" VerticalAlignment="Top" Width="8.412" RenderTransformOrigin="0.5,0.5" Fill="#FF000000" Stretch="Fill" Data="M164,49 L164,65 L176,57 z" Margin="0,2,4,0" />
                        <TextBlock Text="Saisir une description" />
                    </StackPanel>
                </ToolTipService.ToolTip>
            </jadeControls:ImageButton>
        </Grid>

        <Grid Margin="5,5,5,5">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <RichTextBox Grid.Row="0"/>
            <TextBox x:Name="txDescription" Grid.Row="0"
                         Text="{Binding CurrentMediaItem.Description, Mode=TwoWay}"
                         TextWrapping="Wrap"
                         AcceptsReturn="True" FontFamily="Freestyle Script" FontSize="32">
            </TextBox>
            <jadeControls:ImageButton HorizontalAlignment="Right" Width="15" Height="15" Grid.Row="1" Source="/MediaBrowserSL.RIA;Component/Images/Forward.png" Command="{Binding GoToFrontCommand}">
                <ToolTipService.ToolTip>
                    <StackPanel Orientation="Horizontal">
                        <Path Height="11" HorizontalAlignment="Left" VerticalAlignment="Top" Width="8.412" RenderTransformOrigin="0.5,0.5" Fill="#FF000000" Stretch="Fill" Data="M164,49 L164,65 L176,57 z" Margin="0,2,4,0" />
                        <TextBlock Text="Voir l'image" />
                    </StackPanel>
                </ToolTipService.ToolTip>
            </jadeControls:ImageButton>
        </Grid>

    </Grid>
</customWindow:BlackStyleChildWindow>